<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>首页框架</title>
<link href="styles/index.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php
?>
<div id="index_container">
		<!-- 顶部一行，常用作logo区 -->
		<div class="c-header">
			<h1>图书管理系统</h1>
			<div class="h-user">
			<?php
			// 判断用户是否已经登录
			session_start ();
			if (isset ( $_SESSION ["userinfo"] ) and ! empty ( $_SESSION ["userinfo"] ["account"] )) {
				echo "欢迎" . $_SESSION ["userinfo"] ["username"] . ",<a href='login.php' name='logout' target='_self'>退出</a>";
			} else {
				header ( "location:login.php" );
			}
			?>
			</div>
		</div>
		<!-- 左边一行，常用作菜单 -->
		<div class="c-menu">
			<div class="m-nav">
				<h2>个人管理</h2>
				<ul>
					<li><a href="./tools/alterPassword.php" target="frm">修改个人密码</a></li>
					<li><a href="./tools/userInformation.php" target="frm">查询个人信息</a></li>
				</ul>
			</div>
			<div class="m-nav">
				<h2>图书管理</h2>
				<ul>
					<li><a href="./tools/addBooks.php" target="frm">添加图书</a></li>
					<li><a href="./tools/booksList.php" target="frm">图书列表</a></li>
				</ul>
			</div>
		</div>
		<!-- 右边一行，常用作iframe嵌套框架 -->
		<div class="c-content">
			<iframe id="frm" name="frm" frameborder="0" scrolling="auto"
				src="http://android.myapp.com/myapp/detail.htm?apkName=com.zhuifeng.love2048"></iframe>
		</div>
		<!-- 底部一行，常用与版权声明等信息 -->
		<div class="c-footer">
			&copy;版权归<a
				href="http://android.myapp.com/myapp/detail.htm?apkName=com.zhuifeng.love2048"
				target="_blank">追风</a>所有，违者必究
		</div>
	</div>
</body>
</html>
